﻿using System;
using System.Windows.Forms;

namespace ExtensionMethodExtravaganza
{
	public class ListViewItemTextComparer : ListViewItemComparer
	{
		public override int Compare(ListViewItem x, ListViewItem y)
		{
			return StringComparer.CurrentCultureIgnoreCase.Compare(x.SubItems[ColumnIndex].Text, y.SubItems[ColumnIndex].Text);
		}
	}
}